package com.tcm.ucenter.service;


import com.base.core.exception.ServiceException;
import com.base.core.utils.R;
import com.tcm.ucenter.domain.dto.UserDTO;

import java.util.List;

public interface UserDetailService {

    /**
     * 新增
     *
     * @param userParams
     * @return
     */
    R save(UserDTO userParams) throws ServiceException;

    /**
     * 更新
     *
     * @param userParams
     * @return
     */
    void update(UserDTO userParams) throws ServiceException;

    /**
     * 获取单条数数据
     *
     * @param userId
     * @return
     */
    UserDTO findUserByUserId(Long userId) throws ServiceException;

    List<UserDTO> listUserByUserIds(List<Long> userIds) throws ServiceException;

    UserDTO findUserByToken(String token) throws ServiceException;

    void changeMobile(String mobile, Long userId) throws ServiceException;

    void updateAvatar(String avatar, Long userId) throws ServiceException;
}
